<!--基本-->

<div class="form-group">
    <label class="control-label col-xs-2">
        商品分类
    </label>
    <div class="col-xs-9">
        <div class="row">
            {include file="public/categorySelector" one-name="category_id1" two-name="category_id2" three-name="category_id3" /}
        </div>
    </div>
</div>


<div class="form-group">
    <label class="control-label col-xs-2">
        商品标题
        <span style="color: #FF0000;">*</span>
    </label>
    <div class="col-xs-9">
        <input type="text" class="form-control" maxlength="30" name="title" placeholder="请输入商品标题，限30字以内" >
    </div>
</div>
<div class="form-group" style="display: none">
    <label class="control-label col-xs-2">
        商品短标题
    </label>
    <div class="col-xs-9">
        <input type="text" class="form-control" maxlength="10" name="short_title" placeholder="请输入商品短标题，限10字以内" >
    </div>
</div>
<div class="form-group">
    <label class="control-label col-xs-2">
        商品关键字
    </label>
    <div class="col-xs-9">
        <input type="text" class="form-control" maxlength="50" name="keyword" placeholder="商品关键字,能准确搜到商品的,比如 : 海尔电视|电视 之类的，多个关键字用|隔开，限50字以内" >
    </div>
</div>
<div class="form-group">
    <label class="control-label col-xs-2">
        商品缩略图
        <span style="color: #FF0000;">*</span>
    </label>
    <div class="col-xs-9">
        {include file="public/singleImageUploader" uploader-name="img_url" /}
        <div style="color: red">图片 推荐 宽:高=1:1</div>
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-2">
        默认售价
        <span style="color: #FF0000;">*</span>
    </label>
    <div class="col-xs-9">
        <input type="number" class="form-control" maxlength="11" min="0.01" step="0.01" value="0.01" name="price" placeholder="请输入商品售价，精确到0.01元" >
    </div>
</div>
<div class="form-group">
    <label class="control-label col-xs-2">
        默认原价
        <span style="color: #FF0000;">*</span>
    </label>
    <div class="col-xs-9">
        <input type="number" class="form-control" maxlength="11" min="0.01" step="0.01" value="0.01" name="original_price" placeholder="请输入商品原价，精确到0.01元" >
    </div>
</div>
<hr>
<div class="form-group">
    <label class="control-label col-xs-2">
        运费计费模式
        <span style="color: #FF0000;">*</span>
    </label>
    <div class="col-xs-9">
        <select id="dispatch-type-selector" name="dispatch_type" class="form-control" tabindex="-1" >
            {volist name="dispatch_type" id="item"}
            <option value="{$item.type}">{$item.title}【{$item.desc}】</option>
            {/volist}
        </select>
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-2">
        商品运费
    </label>
    <div class="col-xs-9">
        <input type="number" class="form-control" maxlength="11" name="dispatch_price" placeholder="商品运费，精确到0.01元" >
    </div>
</div>



<div class="form-group">
    <label class="control-label col-xs-2">
        平台排序
    </label>
    <div class="col-xs-9">
        <input type="number" class="form-control" maxlength="11" name="display_order" placeholder="平台排序，排序号越大，商城内商品显示越靠前" >
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-2">
        显示销量
    </label>
    <div class="col-xs-9">
        <input type="number" class="form-control" min="0" step="1" name="sales_nums" placeholder="显示销量" >
    </div>
</div>


<div class="form-group">
    <label class="control-label col-xs-2">是否上架</label>
    <div class="col-xs-9">
        <div class="btn-group" data-toggle="buttons">
            <label class="btn btn-default active">
                <input type="radio" name="status" id="status_1" value="1" checked> 上架
            </label>
            <label class="btn btn-default">
                <input type="radio" name="status" id="status_0" value="0" > 下架
            </label>
        </div>
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-2">是否首页推荐</label>
    <div class="col-xs-9">
        <div class="btn-group" data-toggle="buttons">
            <label class="btn btn-default active">
                <input type="radio" name="is_recommend" id="recommend_2" value="2" checked> 不推荐
            </label>
            <label class="btn btn-default">
                <input type="radio" name="is_recommend" id="recommend_1" value="1" > 推荐
            </label>
        </div>
    </div>
</div>

<script>
    $(function () {
        $("#dispatch-type-selector").select2({
            placeholder: "请选择运费计算模式",
            allowClear: true,
            width: "100%"
        });
    });
</script>




